import axios from 'axios'

const request = axios.create({
    baseURL: "http://localhost:8888/"
});

request.interceptors.response.use(
    resp => resp.data, 
    reason => {
        // 统一失败处理
        return Promise.reject(reason)
    }
);

export default request